package com.woniuxy.food.infra.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜品spu表
 * </p>
 *
 * @author 刘德华
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("food_spu")
public class FoodSpu implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * spuID
     */
    @TableId(value = "spu_id", type = IdType.AUTO)
    private Integer spuId;

    /**
     * 商家ID
     */
    private Integer storeId;

    /**
     * spu名称
     */
    private String spuName;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 主图
     */
    private String mainPic;

    /**
     * 总销量
     */
    private Long salesCount;

    /**
     * 创建时间
     */
    private Date creatTime;

    /**
     * 菜品状态 NORMAL 上架| FORBID 下架
     */
    private String spuState;


}
